import request from '@/utils/request'

// 查询办公室地址管理等列表
export function listMa(query) {
  return request({
    url: '/officeArea/basics/list',
    method: 'get',
    params: query
  })
}

// 查询办公室地址管理等详细
export function getMa(id) {
  return request({
    url: '/officeArea/basics/' + id,
    method: 'get'
  })
}

// 新增办公室地址管理等
export function addMa(data) {
  return request({
    url: '/officeArea/basics',
    method: 'post',
    data: data
  })
}

// 修改办公室地址管理等
export function updateMa(data) {
  return request({
    url: '/officeArea/basics',
    method: 'put',
    data: data
  })
}

// 删除办公室地址管理等
export function delMa(id) {
  return request({
    url: '/officeArea/basics/' + id,
    method: 'delete'
  })
}

// 导出办公室地址管理等
export function exportMa(query) {
  return request({
    url: '/officeArea/basics/export',
    method: 'get',
    params: query
  })
}

// 销区
export function regionList(query){
  return request({
    url: '/officeArea/basics/region',
    method: 'get',
    params: query
  })
}